package com.block.datapush.form.item.util;

import cn.hutool.core.util.StrUtil;
import com.block.common.enums.BaseTypeInfoEnum;

public class BaiNiaoUtil {

    public static Integer getZhima(String zhima){
        if (StrUtil.equals(BaseTypeInfoEnum.ZhimaScore.zm001.getValue(), zhima)){
            return 0;
        }else if (StrUtil.equals(BaseTypeInfoEnum.ZhimaScore.zm002.getValue(), zhima)){
            return 1;
        }else if (StrUtil.equals(BaseTypeInfoEnum.ZhimaScore.zm003.getValue(), zhima)){
            return 2;
        }else if (StrUtil.equals(BaseTypeInfoEnum.ZhimaScore.zm004.getValue(), zhima)){
            return 3;
        }else if (StrUtil.equals(BaseTypeInfoEnum.ZhimaScore.zm005.getValue(), zhima)){
            return 4;
        }
        return 0;
    }

    public static Integer getHuabei(String huabei){
        if (StrUtil.equals(BaseTypeInfoEnum.Huabei.hb001.getValue(), huabei)){
            return 0;
        }else if (StrUtil.equals(BaseTypeInfoEnum.Huabei.hb002.getValue(), huabei)){
            return 3;
        }else if (StrUtil.equals(BaseTypeInfoEnum.Huabei.hb003.getValue(), huabei)){
            return 4;
        }else if (StrUtil.equals(BaseTypeInfoEnum.Huabei.hb004.getValue(), huabei)){
            return 4;
        }
        return 0;
    }

    public static Integer getBaitiao(String baitiao){
        if (StrUtil.equals(BaseTypeInfoEnum.Baitiao.bt001.getValue(), baitiao)){
            return 0;
        }else if (StrUtil.equals(BaseTypeInfoEnum.Baitiao.bt002.getValue(), baitiao)){
            return 3;
        }else if (StrUtil.equals(BaseTypeInfoEnum.Baitiao.bt003.getValue(), baitiao)){
            return 4;
        }else if (StrUtil.equals(BaseTypeInfoEnum.Baitiao.bt004.getValue(), baitiao)){
            return 4;
        }
        return 0;
    }

    public static boolean getHouse(String house){
        if (StrUtil.equals(BaseTypeInfoEnum.House.hu001.getValue(), house)){
            return false;
        }
        return true;
    }

    public static boolean getCar(String car){
        if (StrUtil.equals(BaseTypeInfoEnum.Car.car001.getValue(), car)){
            return false;
        }
        return true;
    }

    public static boolean getBaodan(String baodan){
        if (StrUtil.equals(BaseTypeInfoEnum.Insurance.in001.getValue(), baodan)){
            return false;
        }
        return true;
    }

    public static boolean getShebao(String shebao){
        if (StrUtil.equals(BaseTypeInfoEnum.SocialInsurance.si001.getValue(), shebao)){
            return false;
        }
        return true;
    }

    public static boolean getYuqi(String yuqi){
        if (StrUtil.equals(BaseTypeInfoEnum.Yuqi.yq002.getValue(), yuqi)){
            return false;
        }
        return true;
    }

    public static boolean getGjj(String gjj){
        if (StrUtil.equals(BaseTypeInfoEnum.Gjj.gjj001.getValue(), gjj)){
            return false;
        }
        return true;
    }

}
